package cn.com.generaldata.os.newpojo;

import java.util.Date;

import com.sun.xml.internal.bind.CycleRecoverable;

/**
 * 指标核算实体
 */
public class IndicatorAccounting implements java.io.Serializable, CycleRecoverable {
	private static final long serialVersionUID = 5454155825314635342L;

	private Integer id;
	private String name;
	private String code;
	private String unit;
	private Integer unitMagnitude;
	private Integer enabled;
	private Integer frequency;
	private String industryCode;
	private Integer level;
	// private Integer category;
	private String formula;
	private String showFormula;
	private Integer reference;
	private Integer showResult;// 是否显示结果，有些间接引用的指标不用显示
	private Integer priority;// 核算指标的运算优先级别，高级别优先运算
	private Integer sortNo;// 核算排序序号
	private Integer equalIndicatorInputId;// 对应录入指标的id
	private String description;
	private Date createTime;
	private Date lastUpdate;
	private Integer marineIndustryCategory;// 海洋产业类别: 1:第一产业2：第二产业3:第三产业
	private Integer marineIndustryAttr;// 海洋产业属性: 1:主要海洋产业增加值2：海洋科研教育管理服务业增加值3：海洋相关产业增加值

	/**
	 * 解决CXF循环引用问题.
	 * 
	 * @param arg0
	 * @return
	 */
	@Override
	public Object onCycleDetected(Context arg0) {
		IndicatorAccounting temp = new IndicatorAccounting();
		temp.setId(id);
		return temp;
	}

	public Integer getMarineIndustryCategory() {
		return marineIndustryCategory;
	}

	public void setMarineIndustryCategory(Integer marineIndustryCategory) {
		this.marineIndustryCategory = marineIndustryCategory;
	}

	public Integer getMarineIndustryAttr() {
		return marineIndustryAttr;
	}

	public void setMarineIndustryAttr(Integer marineIndustryAttr) {
		this.marineIndustryAttr = marineIndustryAttr;
	}

	public IndicatorAccounting() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getEnabled() {
		return enabled;
	}

	public void setEnabled(Integer enabled) {
		this.enabled = enabled;
	}

	public Integer getFrequency() {
		return frequency;
	}

	public void setFrequency(Integer frequency) {
		this.frequency = frequency;
	}

	public String getIndustryCode() {
		return industryCode;
	}

	public void setIndustryCode(String industryCode) {
		this.industryCode = industryCode;
	}

	public Integer getUnitMagnitude() {
		return unitMagnitude;
	}

	public void setUnitMagnitude(Integer unitMagnitude) {
		this.unitMagnitude = unitMagnitude;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	// public Integer getCategory() {
	// return category;
	// }
	//
	// public void setCategory(Integer category) {
	// this.category = category;
	// }

	public String getFormula() {
		return formula;
	}

	public void setFormula(String formula) {
		this.formula = formula;
	}

	public String getShowFormula() {
		return showFormula;
	}

	public void setShowFormula(String showFormula) {
		this.showFormula = showFormula;
	}

	public Integer getReference() {
		return reference;
	}

	public void setReference(Integer reference) {
		this.reference = reference;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Integer getShowResult() {
		return showResult;
	}

	public void setShowResult(Integer showResult) {
		this.showResult = showResult;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public Integer getEqualIndicatorInputId() {
		return equalIndicatorInputId;
	}

	public void setEqualIndicatorInputId(Integer equalIndicatorInputId) {
		this.equalIndicatorInputId = equalIndicatorInputId;
	}

	public IndicatorAccounting(Integer id, String name, String code, String unit, Integer unitMagnitude,
			Integer enabled, Integer frequency, String industryCode, Integer level, String formula,
			String showFormula, Integer reference, String description, Date createTime, Date lastUpdate,
			Integer marineIndustryCategory, Integer marineIndustryAttr) {
		super();
		this.id = id;
		this.name = name;
		this.code = code;
		this.unit = unit;
		this.unitMagnitude = unitMagnitude;
		this.enabled = enabled;
		this.frequency = frequency;
		this.industryCode = industryCode;
		this.level = level;
		// this.category = category;
		this.formula = formula;
		this.showFormula = showFormula;
		this.reference = reference;
		this.description = description;
		this.createTime = createTime;
		this.lastUpdate = lastUpdate;
		this.marineIndustryCategory = marineIndustryCategory;
		this.marineIndustryAttr = marineIndustryAttr;
	}

}
